package com.digital.smartgrow.controller.sysinfo;


import com.digital.smartgrow.service.sysinfo.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiewb
 * @since 2022-04-03
 */
@Api(tags = "用户")
@RestController
@RequestMapping("${context.prefix}/user")
public class UserController {

    @Autowired
    private UserService userService;

    @ApiOperation(value = "查询列表")
    @GetMapping("/getList")
    public Object getList(){
        return userService.list();
    }
}
